// Dashboard 图层
export interface DashboardLayerData {
  id: number | string
  name: string
  type: string
  visible: 0 | 1 | 2 //	0 / 1 / 2[常驻]
  order: number
  viewName: string
  source?: string
  fixed?: boolean
  arrow?: boolean
}

// gis
export interface GisInfo {
  tabId?: number
  name: string
  lnglat: boolean
  legend: boolean
  tileStyle: number
  mapType: number
  entityLayerId: Array<number> //  有点数据 & 面数据 layerId
  relationLayerId: number
}

// Dashboard 文本
export interface DashboardText {
  widgetId: number | string
  width: number
  height: number
  position: {
    top: number
    right: number
  }
  chartOptions: {
    showTitle: boolean
    chartType: string
    title: string
    value: string
    showBorder: boolean
    parentId: string
    interactions: any
  }
}

// Dashboard 数据
export interface DashboardInfo {
  layerData: Array<DashboardLayerData>
  gisInfo: GisInfo
  text: Array<DashboardText>
}
